put distance formula back in