add undo return value