try not to rely on `arguments`. The function already has named arguments, so you can switch on those, with a (faster) if construction:
```
if(z) { /* code for case 3 */ }
else if(y) { /* code for case 2 */ }
else { /* code for case 1 */ }