fixed merge bug in appendix A