code for working with ROI_seg