final modification to template