added state transition.