Change vector to list