code block was not working