- checking the matrices