anchor.diff:  	$head.appendTo($li);
   	$body.appendTo($li);
   	add_inputs($head, 'material');
  +	$head.find("#quantity").val(quantity);
  +	$head.find("#measurement").val(measurement);
   
   	$li.droppable({
   		greedy: true,
  
positive.code: 		var material = {};
  		material["name"] = $(this).find(".material").data("name");
  		material["id"] = $(this).find(".material").data("id");
  
  		var procedures = [];
  		$(this).find(".process").each(function (index) {
  			procedures.push({"name": $(this).data("name"), "id": $(this).data("id")});
  		});
  		material["procedures"] = procedures;
  
  		result.push(material);
  	})
  	// console.log(result)
  	return result;
  }
  
  function fill_build( data ) {
  	// console.log(data)
  	for (var key in data){
  		var material = data[key];
  		var $mat = make_new_material_section(material["name"], material["id"]);
  		for (var key in material["procedures"]) {
  			var proc = material["procedures"][key];
  			add_proc_to($mat, proc["name"], proc["id"]);
  		}
  	}
  }
  
negative.code: 			var id = $(from).data("id");
  			var name = $(from).data("name");
  			if ($(from).data('type') == 'procedure') {
  				//console.log($(this).processes.offsetparent.childElementCount);
  				console.log($(this).find(".processes").children().length);
  				if ($(this).find(".processes").children().length > 1) {
  					add_proc_to($li, name, id, 0,$head.find("#measurement").val());
  				}
  				else {
  					add_proc_to($li, name, id, $head.find("#quantity").val(),$head.find("#measurement").val());
  				}
  			};
  
  		}
  