adding blink function