fixed some pulsing issues