fixes typos and errors