working simple dist mmult