fix formulae