switch stateents updated