working on implementing formulas