update procedure for code blocks