changed pulse to a single pulse