neighbor length test