Before changing mr algorithm