changed for n in range(0,len(..)) to (0,30)