Update state.cs