changed tris.c