prepare branching.