update segmentation macro