acceptance refactoring