An animal will gain weight when