fix variable name aliasing

I really shouldn't define phi and φ in the same scope.