move state machine