rename "text" function to "structure"