Guo's code