wrote functions to get stats, topics, etc