updated neighbor filter