added the distance calculator