changing matrix multiply