refactoring spec.