added functionality to undo accomplish