* refactoring damage and repair system