update source for triangles