code for yang's group