adding matrix multiplication