fixing errors and typos