endpoints for triangle detection