update constructor of vectors