fixed variable naming mismatch