unhoist on function scope exit