corrected code block