refactoring spacement