adds skeleton of result grouping