implemented smooth blinking