appendix code update