added distance calculator
merged