fixed variable not declared