cleanup print method