was refactoring