cleared some errors in chapter2