fixing refactoring specs