better exporting of data