full segmentation