correction to template