convert iterator to seq