basic adjustments including adding distance formulas