state machine finished!