corrected branching statements