change output logic