updated undo to register increase in copy number