vector and matrix updated