revert to original beam code