reinstate changes before commit