min Refactoring