fixed chapter 4 appendinx counter