fixed some typos as IDEA suggested