optimized branchingCC