polygon insertion working