corrected code examples