add text read code
bug fix of text read code