add class segmenter