a function scope is leaking