code to test the segmentation