fixed variable name confusion