segmentation implemented, proceed for testing