bug fix: build neighbors