commit before switching the branch