fix some typos and some codes