added groupBy improvements.