macro segmentation