vector.cpp modified