Inhibitory and facilitatory effects of cue onset and offset