Update createPolygon