         c.reconstruct_as = WeightedNodeCollectionFromSF
       else
         console.log('won\'t finish S-F, incomplete')
-  }
+  },
+  delete_menu_item,
 ]
 
 code_list_dropdown_menu = [

      console.log('finish Huffman')
      # TODO: maybe first this should automatically finish the construction?
      c.reconstruct_as = WeightedNodeCollection
  }
]

shannon_fano_dropdown_menu = [
  {
    name: 'automatic Shannon-Fano step',
    action: (c, t) ->

    rel_pos = []

    calcBounds = (node) ->
      if node.getSize?
        {width: own_width, height: own_height} = node.getSize()
      else
        own_width = node.radius * 2
        own_height = node.radius * 2
      width = own_width
      height = own_height

      children = []

