Update tri.php