added structure for secondary segmentation