refactoring printExport again