some modification regarding text processing