Need help with my grasshopper project! grasshopper challenge

Hey guys,

I need help.

I am trying to find each adjacent loop section to every inner offset of the intersection.

So for circle 0 I need the adjacent section of inner circle 0.
See the example I made.
The example works but it gives the wrong section for values 0,5,6 and 7 (see the red number slider)

I dont know what I am doing wrong.
Example.gh (46.9 KB)

Thank you so much for your help!!

Don’t mind the numbering in the image please, I see now that it could be a bit confusing. The problem is that the sub-curve for index number 0, 5, 6 and 7 is selecting the “outside”/longer part of the curve and not the inner part of the curve.