formatting for export