refineSegmentation implemented