added bugMacroApply