fsm remove dict for when_entering & when_leaving functions