added matR dep