fixed variable names that were causing a bug