set the structure consistent with standford Tree structure