for text document