Your post/reply >>6, is so vague and abstract without comparison of code side by side, makes me wonder if you posted gpt reply, or ai actually writes & understands subject better than you.
I was phoneposting whilst intoxicated. Sorry for not posting code examples. I still won't post any but I'll reply again later to clear up some vagueness.