added getDistance methods