create custom module to export matrix