try to complete state machine