changed prediction alg