edits to SegmentPoCA --David Caratelli