worked on the callbacks for the topic