add calculate distance