add matrix multiply to check