sequence segmentation implemented