nested loop on user index