save old version before modifying