modified to mail for every hour