removed csv exporting due to memory issues