corrected some errors