removes defects