testing calculate distance