Better order of modes in switch statement