triangles, iterations, and exceptions