moved tree stats collecting funcs to producer