modified exportMatrix methods
modified exportMatrix methods