modified read function

Modified read function. BY jianan.