fixed variable naming issue