update for new vector API