rr output logic fix