finish branching