change return of findNearest();