changes in chapter 4 and a bit in the chapter 5