upgrade alg of reading