• what about adding a number column to the master table and using that in your loop?