added functions to set blink state