updating polygon max length