added groupBy deffered