implemented dot product, but currently unchecked