adding a transition to a condition