How to convert polygon to matic