changed type blocks to use whitespace syntax rather than braces