update lights.c