Apparently, making the function that arrives at the pass should have been done first. Don't know where to start with that though. annotating not to lose it