added checkers and countined processText