use simpler distance formula (precision is good enough)