switching typers