added neighbor search routines