undo partial working, debug