Update dotproduct