set lamps on and off