adding blinks function