findNearest upgrade