added proper step check for pulses