refactor br