added the setting of pulse by pulse