from refactoring, it used to return the array or the text as a string