where to put loop