tweaks
tweaks
external points detection for applying convex hull