adds segmentation