refactoring specs