corrected some faults