added template structure