group by dates as well