add information when doing undo cmd