updates to tet.php file