tweaked two pointer-vs-var-vs-ref issues, hopefully this will compile or help us home in on the solution