some changes to exporter, multiplying to a matrix