i guess there are other places where the value returned by `write_prediction_headers` doesn't need to be reversed, right?