transpose matrices before exporting!