some fixes for chapter 3