rewriting the analysis chapter