update vector size