commit both