updates the rm