updated compound to handle lists of labels more easily