rework of chapter 4