update switch examples