Somehow you ended up with:
I don’t even know why you have two… You are really creating utter confusion for yourself:
Close all tabs, open the main graph:
Make sure this function has the stuff you need. Rename it if you must so you know what to call.