reverting the state machine change