grouping by the end of the interval