revise the Stanford Tree Builder