added grouping time2