some factorization in the branching part.