fixed pulsing bug