added mrm macro