adds the prediction to the output