better undo-stack printing