working on distance formula, testing results