check list length for inputs to polygon