updated traverse functions to localize element and allow for iteration of multiple articles