moved condense_labels into a function in aggregate