pred_res: fix scope this time this is it