added matrix to arai