   
   direct_message = false
 
-  pos = (x: canvas.width/2, y: canvas.height/2 +
-              collections.length * default_node_radius * 4)
+  pos = nextPos()
 
   if str[0] == ':'
     # making a CodeListCollection for letter->code pairs

    @codes = {}
    @errors = false

  addCodes: (codes, pos) ->
    for symbol, code of codes
      @addCode(symbol, code)

    ctx.save()
    setStyle(ctx, link_style)
    ctx.beginPath()
    if @child0?
      ctx.moveTo(@x, @y)
      ctx.lineTo(@child0.x, @child0.y)
    if @child1?
      ctx.moveTo(@x, @y)
      ctx.lineTo(@child1.x, @child1.y)
    ctx.stroke()
    ctx.restore()

