added matrix to compare