updated code block