clean up the branching