conversion for collect_labels

not tested seriously