Impact of environment on animal size