remove defective code