updated code-blocks