fixed incorrect variable names