added getDistance function