fixed outer product, redo inner product!