object at end and array-nested for loops