fixed typos and duplicated characters