change vectorptr to vector