added in test function to show how to get the text