refactoring executable