adding formulas final