lame version of undo working