improved the segmenter