experimenting with typeswitch