Red light function no bug