Changed the syntax of polyline and polygon