switching model