skeleton for trie