getDistance done