segmentation works now