add set leaf, constructor of tstats now rely on param