adding mode to select convex hulls