change vector pointer to vector