cleanup for print format