check branching