updates rm and pv