complete full function according to weixin mp