Added i so that get actually iterates over all links in index