correcting some errors