changing settings as in chapter 8