polygons partially working