modify to support new triangles