updated for new vector API