allow grouping by time range