changed method to find nearest path node