add level attribute to nodes in order to render trie