prediction with parallelization