update prediction