add tags to topics in functions