beams reverted

Changed beams.dm to readd old code!