added label class helper function for topics