clean up output logic.