state machine with hard code transition