three level nested loop, 2