undo function addition