updates remaining code blocks