cleaned up, halfway through chapter 10