fixed typos in variable names