amend code blocks