transferred data from temp storage to the leaves on the trees