update vector class def