building out an iterator for the links