should probably checked on addTransition.