built codeblock loop