rewrite topicdict