solved minimum scalar product.