fixed the regularPolygon