update switch