rewriting apply_backup