upadate datastructure vector