## 6 Conclusions  
The article presents the results of research that aimed to identify defects in residential buildings, identify factors at the stages of the investment process that influence the generation of defects, and assess the impact of individual factors on the occurrence of defects. The measure of quality is the number and type of defects that were found during the technical acceptance of building objects. A methodology for identifying and evaluating the impact of selected factors on the generation of defects in residential buildings was developed. The methodology consists of three stages:  
* In situ tests carried out on construction sites which involve the identification of defects in residential buildings during the technical acceptance procedure;
* The identification of factors (based on conducted surveys) that occur at individual stages of the construction process and which affect quality;
* Determining the strength of the influence of factors on the generation of faults using discrimination analysis. The largest number of defects were found in building elements such as plasters (22.43%) and windows (15.05%), followed by floors (7.57%), electrical installations (7.12%), common parts (5.99%), water and sewage installations (5.53%), deficiencies in cleaning elements 5.39%), doors (5.23%), and glass (4.51%). Based on a literature review and surveys conducted among construction managers, 33 factors were identified that influence the generation of defects. Factor C1 has the greatest power to discriminate faults--lack of internal control of design documentation before starting the construction of the facility. The analysis of the facility's documentation, before sending it to prepare an offer for construction works and investment implementation, is crucial for the quality of the facility because it will allow detection of errors, omissions and shortcomings in the documentation and eliminate the impact on the quality of the building of factors such as C2 errors in bills of quantities, errors in the C3 documentation, and errors in the C5 cost estimate. The research also showed that it is very important to have a well-trained and stable team responsible for preparing an offer for the investment. The results of the conducted research are very important for construction practice in the field of quality management in residential construction. They indicate which elements of a residential building have the most defects identified and what factors have the greatest impact on generating defects. This knowledge is useful for participants of the investment process (construction manager, investment supervision inspector, designer, investor), construction companies and, above all, the client. The application of research results in practice will result in the customer receiving a product of the highest quality, free from defects, which should be the goal at every stage of planning, implementation, and operation of the facility. An important practical tip is to point out that the most important impact factor is the quality of the design documentation and the need to control the documentation before starting the construction of the facility. The results of the conducted research contributed (certainly only to a limited extent) to filling the research gap in the area of assessing the impact of identified factors on the generation of defects in housing construction. The knowledge obtained will help in the future to develop quality management procedures and minimize the costs incurred for removing defects. Knowledge about phenomena occurring in residential buildings can therefore be used to better plan the investment budget. The authors point out two limitations in the research conducted:  
1. A relatively small set of residential buildings consisting of 8 objects. 2. Research territory limited to one region of Poland, Lower Silesia. These two limitations may constitute the basis for stating that the research results are not representative of the whole of Poland.