drawing polygons, and interpolation