Update tri.c