fix formulas