added window repairing