unit added to getClosest function