finally got this working! after hours of searching for solutions online, it occurred to me to simply prompt ChatGPT with my code, and ask it for suggestions to fix my bug. in moments it was able to teach me how to resolve my issue.