undo unused codes