replace triangles