readded sqmatrix