process of segmentations