adds appendix and fixes