branching improvement