corrected some codes.