used another way of initalizing vectors