distinguish between triple and triangle