adding topics to helper function