translated to Switching Branches (1/2)