repairing doc