branching to find error