added flashing when grace time is up