added data into a vector