reset to old state.