populating treenodes