cleanup print mode