Scalar product using for