block matrix multiplication fixes