replace nodelist with vector