itemize state machine