works with hypothalamus to control body activities