add missing end to code block