change to compute dot products