cleanup for print