create stateBundle