converted aggregators to FSM