modify fsm graph