start on implementing segmentation