replaced list items with relevant list items, popped in link to iterate through correct ones