the first switch statement prevents the evaluation of the right