curvyEdges(exception handleing)