Given a scientific question, generate a correct answer to it.
Q: Both endotherms and ectotherms control what through behavioral responses to changes in the environment?
A:
body temperature