finished rewriting appendix