function to light rooms works