bug fix
matrix multiplication