small refactoring to bramble