The influence of environment on competitive ability