added function to get all topics at once