updates rm and sizes