Change the vector to list