rename next() function to nextLight()