return closest distance

oops