updated dot product