first instance of a repeat is marked as  in repeatsVariable