added typeswitcher class