Updated the for loop to get data from each segment uri