add group labels to the result