refactoring terminated