added getDistance function from last year