changes matrix a little