preparing for branching