undo function was added