modify appendix code