specs refactoring