Neurobiological mechanisms of adaptation and behavior