adding grouping by date