changed the text method to be more readable