added setPolygon