clean up
fix adding key, object to trie