corrections to template