del stateMachine and changeState