fixing chapter 4