leger refactoring sim