turn off lights twice to improve reliability