working on triangles