added new distance formula. Need to test more