Added logic to create table list for loop
cat generated list for loop