switch scoped