correct mistakes in the code examples