general formulas