when it undergoes a change from state A to state B