fixed variable within function