added an upper limit on radius in triangle component