modified exportMatrix methods