breaking daynight into separate module