code block clean up