rewriting chapter frameworks