general formulae