Reduce syntactic clutter in loop2