now the segmentation is running for simulation