add segmentation