Effect of density on populations