changes for chapter 6 to work