restructure polygon