revised some errors