added get.nested.formulas