optimized the codes of read method
1 file changed