checking branching