commit befor branch switch