add copy all beams for dep. function