added getDistannce