resolving typos and code errors