added grouping intersections