initial grouping return addition for data generation function