state updates
Merge pull request #10 from xzs/stateUpdate

state updates