ADD: remove duplicates
ADD: start on segmentation