corrects errors in first codeblocks