implemented multiple transitions.