commit before update