got rid of polygon class