partially done with appendix 2