triangles and cleanup