code added to template