changed groupingBy to groupBy