updates all code blocks