switch from list to code block