fixed variable names in error