finish the update of topic trace

add relations for the topic trace