added periodic stimulation