updating origins in set_structure method of DMA class