added a substitute action for text paragraphs