add labels to groups