invitation and Xiaoying's code