defective code