Learner resolved the issue by proper indentation (so that loops are applied correctly). Closing thread.