added qualifications for the undo method in case that might help things for some reason.