defects analysis