small refactor in geo_polygon