updated tree gen