fixed the prediction loops by referencing the correct data frames, not comp.rn.