stubbed switch function