make mwhen a macro