moved the appendix and changed the references