code block for formulas