why isn't this a local function variable?