renamed typos in variables