second refactorbeam