fixed variables in chapter 7 work