added day/night terminator