corrections for template