correcting convex hull