NodeList to seq conversion improved