updated fsm-2