change array to vector