some fixes in chapter 2

some fixes in chapter 2