updates rm with ns