timing functions set up for night routines