refactoring Vector constructor