handling changing illumination