Changed dot product to vector product