moving data structures from arrays to vectors