add type to code blocks