old stuff
parallelize labeling