added te related stuff to the template