how the body reacts to the environment