corrected several mistakes