checking for the night