refactoring llrb