update topicModeling function