removing the current state or type when changing state or type