segmentation could be now externally set