adding segmentation pieces