add dot product to vector