implementation of step segmentation ok