Adapting oneself to the environment