add logics for modifying a transition