total_output code cleanup