added code to produce daily summaries