removed spurious single quotes for subtopic and pubtopic variables