fail refactoring