revamped the local regions to properly define polygons