segmentation module constructing