added matrix