streamline logic, change light threshold