refineRoughEdges