fixed variable name mismatch