updating segmentation code