a couple of code blocks not closed