some rewriting of chapter 1