description of outer & inner loop.