commit before branch switch