The virtue of adaptation