added tris.c v0.0