updated the stimulus routines