changed incorrect variable names