handle duplicate on pulses properly