update neighbors flag