fix some typos and syntax