how do animals adapt their diets