refactoring leger