updated polygon, test version