typos
typos, renamed some variables