better matching of labels