vector overloading improvement