change to update switch