fixed variable naming errors