updates rm and example