added new methods for drawing polygons