template structure restored