fix neighbour code methods for using relation properties