update method for predictions