changed code blocks