day/night check
updated