template structure corrected