added missing parameter in mran_set fxn