modified template structure