applying convex hull