segmentation working fairly well