refactoring : lights