Switch and deterministic rules

thanks a lot!