fixing typos, bad syntaxes