change all labels to class label