updated the vector addition