changing to new state breaks the state machine