prediction and update done