changing matrix style