fixed variable name issue