found distance formula