working iteration of the html collection