evacuation: coded a better way to update total defect.