linked polygonfitter to main