fixing defects