need to commit before update