tested running fsm faster