# Cones Size problem in loops

Hi everyone,

We have spoken about size of cones (Cones Size Problem - #2 by Bijan) But there is a problem when we use many cones in a command (`fig.add_cone`). For better understanding take a look to the below codes:

``````import plotly.graph_objects as go
import plotly as plt
import numpy as np
import random as rnd

def rndata():
a=0
b=10
n=1
rslt=[]
for i in range(n):
rslt.extend([rnd.randint(a,b),rnd.randint(a,b),None])
return rslt

fig = go.Figure()

u,v,w=[],[],[]
xx,yy,zz=[],[],[]

for i in range(10):
x= rndata()
y=rndata()
z=rndata()

size=((x-x)**2+(y-y)**2+(z-z)**2)**0.5
axis=[(x-x)/size,(y-y)/size,(z-z)/size]

u.extend([axis,None])
v.extend([axis,None])
w.extend([axis,None])
xx.extend([x,None])
yy.extend([y,None])
zz.extend([z,None])

sizes=rnd.randint(1,5)
When we run above code it doesn’t return correct sizes of cones (check it by running multiple times) but when we run the codes in ( Cones Size Problem - Plotly Python - Plotly Community Forum) sizes are correct. Is it a bug or there is a solution?