corrected code blocks