added getDist