day/night correction