zhangyu's code