converted arrays to vectors