refactoring du code