forgot
rewrote state machine