looping through days