fixes chapter 5