update vector