added missing 'template' keyword