add static to a local function.