thread safity for Trie added