triangles refactored

Thank you Github app
should this be `private`?