update trie and packeage