update formulae