add dot product
fix const