fixes some typos and mistaken variable names