change vector<XX> to vector<XX*>