converted polygon to path