added loops to each time of day