fixed variables and typos