loops rules