added text processing