code for compartments
generator sets compartment childs draggable = true