B4 changing neighbors to dict