revise the generating of Stanford Tree