flashing will be done now in a simple loop